<script type="text/javascript" src="<?php echo JQUERY ?>jquery.validate.min.js"></script>
<script type="text/javascript">
			$(document).ready(function(){
				$("#daftar_form").validate({
					rules : {
						old_password : {
							required : true, 
							minlength : 5
						},
						new_password_1 : {
							required : true, 
							minlength : 5
						},
						new_password_2 : {
							required : true, 
							minlength : 5, 
							equalTo : "#new_password_1"
						}
					},
					messages : {
						old_password : " *Harus diisi",
						new_password_1 : " *Minimal password adalah 5 karakter",
						new_password_2 : " *Isi password harus sama"
					}
				});
			});
		</script>
<form id="daftar_form" action="<?php HOME?>ubah_password_process" method="post">
<table align="center" width="550">
	<?php if($flash){ ?>
		<tr>
			<td colspan="2" align="center">
				<h1>Ada kesalahan!</h1>
			</td>
		</tr>
	<?php } ?>
	<tr>
		<td width="100">Password Lama</td>
		<td>: <input type="password" name="old_password" id="old_password"/></td>
	</tr>
	<tr>
		<td width="150">Password Baru</td>
		<td>: <input type="password" name="new_password_1" id="new_password_1"/></td>
	</tr>
	<tr>
		<td width="150">Password Baru (ulangi)</td>
		<td>: <input type="password" name="new_password_2" name="new_password_2"/></td>
	</tr>
	<tr>
		<td colspan="2" align="center"><input type="submit" value="Ganti"/></td>
	</tr>
</table>
</form>